package com.bjpowernode.shop.feign;

import com.bjpowernode.shop.domain.OrderTbl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("order-service")
public interface OrderServiceFeign {
    @GetMapping("/p/myOrder/getOrder")
    OrderTbl getOrder(@RequestParam("orderNumber") String orderNumber);

    @GetMapping("/p/myOrder/updateIsPay")
    void updateIsPay(@RequestParam("outTradeNo")String orderNumber);
}
